{include file="public/header" /}





<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>{$Think.lang.ds_store_money}</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>

    

    <form method="get" id="formSearch">
        <div class="ds-search-form">
            
            <dl>
                <dt>{$Think.lang.admin_storemoney_recordstate}</dt>
                <dd>
                    <select id="paystate_search" name="paystate_search">
                        <option value="">{$Think.lang.ds_please_choose}</option>
                        <option value="2" {if condition="$Request.param.paystate_search eq '2'"}selected="selected"{/if}>{$Think.lang.admin_storemoney_wait}</option>
                        <option value="3" {if condition="$Request.param.paystate_search eq '3'"}selected="selected"{/if}>{$Think.lang.admin_storemoney_agree}</option>
                        <option value="4" {if condition="$Request.param.paystate_search eq '4'"}selected="selected"{/if}>{$Think.lang.admin_storemoney_reject}</option>
                    </select>
                </dd>
            </dl>
            <div class="btn_group">
                <a href="javascript:document.getElementById('formSearch').submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
                {if $filtered}
                <a href="{:url('Storemoney/withdraw_list')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
                {/if}
            </div>
        </div>

    </form>


    <table class="ds-default-table">
        <thead>
        <tr class="thead">
            <th>&nbsp;</th>
            <th>{$Think.lang.ds_store_name}</th>
            <th>{$Think.lang.ds_store_id}</th>
            <th class="align-center">{$Think.lang.admin_storemoney_apptime}</th>
            <th class="align-center">{$Think.lang.admin_storemoney_cash_price}({$Think.lang.ds_yuan})</th>
            <th class="align-center">{$Think.lang.admin_storemoney_cash_shoukuanaccount}</th>
            <th class="align-center">{$Think.lang.admin_storemoney_recordstate}</th>
            <th class="align-center">{$Think.lang.ds_handle}</th>
        </tr>
        </thead>
        <tbody>
        {notempty name="withdraw_list"}
        {foreach name="withdraw_list" item="v" key="k" }
        <tr class="hover">
            <td class="w12">&nbsp;</td>
            <td>{$v.store_name}</td>
            <td>{$v.store_id}</td>
            <td class="nowrap align-center">{notempty name="$v.storemoneylog_add_time"}{$v.storemoneylog_add_time|date='Y-m-d H:i:s'}{/notempty}</td>
            <td class="align-center">{$v.storemoneylog_freeze_money}</td>
            <td class="align-center">{$v.storemoneylog_desc}</td>
            <td class="align-center">{if $v.storemoneylog_state==2}{$Think.lang.admin_storemoney_wait}{elseif $v.storemoneylog_state==3}{$Think.lang.admin_storemoney_agree}{elseif $v.storemoneylog_state==4}{$Think.lang.admin_storemoney_reject}{/if}</td>
            <td class="w90 align-center">
                {if $v.storemoneylog_state==2}
                <a href="javascript:dsLayerOpen('{:url('Storemoney/withdraw_view',['id'=>$v.storemoneylog_id])}','{$Think.lang.ds_verify}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_verify}</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        {else /}
        <tr class="no_data">
            <td colspan="10">{$Think.lang.ds_no_record}</td>
        </tr>
        {/notempty}
        </tbody>
    </table>
    {$show_page|raw}
</div>

<script language="javascript">
    $(function(){
        $('#stime').datepicker({dateFormat: 'yy-mm-dd'});
        $('#etime').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>

